package com.tea.Model.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * 更新动态分类DTO
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DynamicTypeUpdateDTO {
    
    @NotNull(message = "分类ID不能为空")
    private Long dynamicTypeId;
    
    @NotBlank(message = "分类名称不能为空")
    @Size(max = 50, message = "分类名称长度不能超过50个字符")
    private String typeName;
    
    @Size(max = 200, message = "分类描述长度不能超过200个字符")
    private String description;
    
    private Integer sortOrder;  // 排序字段，可选
}